package com.lyn.view.editText;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.EditText;

import com.lyn.view.R;

/**
 * @author:longyongning
 * @date:2021/10/2
 * @description: 圆角输入框
 */
public class LynEditText extends EditText {

    public LynEditText(Context context) {
        super(context);
        init();
    }

    public LynEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        this.setBackground(getResources().getDrawable(R.drawable.rg_line_black));
    }

    public void setDrawable(Drawable drawable) {
        this.setBackground(drawable);
    }

}
